Interface symantec.itools.awt.WizardController
All Packages  Class Hierarchy  This Package  Previous  Next  Index

Interface symantec.itools.awt.WizardController

public interface WizardController
The WizardController interface provides a way to define a customized control of a Wizard.

The SimpleWizardController implements the basic default behavior for this interface.

See Also:
SimpleWizardController

Variable Index

 o CANCEL
Constant wizard action value.
 o FINISH
Constant wizard action value.
 o HELP
Constant wizard action value.
 o NEXT
Constant wizard action value.
 o PREVIOUS
Constant wizard action value.

Method Index

 o doCancel()
Called when the CANCEL action has been validated.
 o doFinish()
Called when the FINISH action has been validated.
 o doHelp()
Called when the HELP action has been validated.
 o doPrepare()
Called before the first page is shown.
 o getNextPage()
Return the next page.
 o getPreviousPage()
Return the previous page.
 o isCancelEnabled()
Tells if the Cancel button must be enabled.
 o isFinishEnabled()
Tells if the Finish button must be enabled.
 o isHelpEnabled()
Tells if the Help button must be enabled.
 o isNextEnabled()
Tells if the Next button must be enabled.
 o isPreviousEnabled()
Tells if the Previous button must be enabled.
 o pageHidden(Component)
Called before the page is hidden.
 o pageShown(Component)
Called after a page is shown.
 o preparePage(Component, int)
Called before a page is shown.
 o resetChainInfo()
Reset the chain information set by setPreviousPageIndex, setNextPageIndex, setPreviousPage and setNextPage.
 o setCancelEnabled(boolean)
Enables or disables the Cancel button.
 o setFinishEnabled(boolean)
Enables or disables the Finish button.
 o setHelpEnabled(boolean)
Enables or disables the Help button.
 o setNextEnabled(boolean)
Enables or disables the Next button.
 o setNextPage(Component)
Set a next page.
 o setNextPageIndex(int)
Set an index for the next page.
 o setPreviousEnabled(boolean)
Enables or disables the Previous button.
 o setPreviousPage(Component)
Set a previous page.
 o setPreviousPageIndex(int)
Set an index for the previous page.
 o validatePage(Component, Component, int)
Try to validate a page.

Variables

 o CANCEL
public static final int CANCEL
Constant wizard action value.

See Also:
preparePage, validatePage
 o FINISH
public static final int FINISH
Constant wizard action value.

See Also:
preparePage, validatePage
 o HELP
public static final int HELP
Constant wizard action value.

See Also:
preparePage, validatePage
 o NEXT
public static final int NEXT
Constant wizard action value.

See Also:
preparePage, validatePage
 o PREVIOUS
public static final int PREVIOUS
Constant wizard action value.

See Also:
preparePage, validatePage

Methods

 o doCancel
public abstract void doCancel()
Called when the CANCEL action has been validated. Default behavior: none.

 o doFinish
public abstract void doFinish()
Called when the FINISH action has been validated. Default behavior: none.

 o doHelp
public abstract void doHelp()
Called when the HELP action has been validated. Default behavior: none.

 o doPrepare
public abstract void doPrepare()
Called before the first page is shown. Default behavior: none.

 o getNextPage
public abstract java.awt.Component getNextPage()
Return the next page. Default behavior: if a next page has been set with setNextPage, return this page. If a next page index has been set with setNextPageIndex, return the associated page. Else, return the next page in the Wizard components order, page 0 if no page has been shown. If there is none, return null. This method is called before and after a validatePage, and by the default implementation of isNextEnabled.

Returns:
The next page to show, null if there is none.
See Also:
setNextPage, setNextPageIndex
 o getPreviousPage
public abstract java.awt.Component getPreviousPage()
Return the previous page. Default behavior: if a previous page has been set with setPreviousPage, return this page. If a previous page index has been set with setPreviousPageIndex, return the associated page. Else, return the next to last element on the stack. If there is none, return null. This method is called before and after a validatePage, and by the default implementation of isPreviousEnabled.

Returns:
The previous page to show, null if there is none.
See Also:
setPreviousPage, setPreviousPageIndex, preparePage
 o isCancelEnabled
public abstract boolean isCancelEnabled()
Tells if the Cancel button must be enabled. Default behavior: return true.

Returns:
True if the Cancel button must be enabled, false otherwise.
 o isFinishEnabled
public abstract boolean isFinishEnabled()
Tells if the Finish button must be enabled. Default behavior: return true if the current page is the last page in the Wizard container.

Returns:
True if the Finish button must be enabled, false otherwise.
 o isHelpEnabled
public abstract boolean isHelpEnabled()
Tells if the Help button must be enabled. Default behavior: return false.

Returns:
True if the Help button must be enabled, false otherwise.
 o isNextEnabled
public abstract boolean isNextEnabled()
Tells if the Next button must be enabled. Default behavior: return true if the getNextPage method returns a page, false otherwise.

Returns:
True if the Next button must be enabled, false otherwise.
 o isPreviousEnabled
public abstract boolean isPreviousEnabled()
Tells if the Previous button must be enabled. Default behavior: return true if the getPreviousPage method returns a page, false otherwise.

Returns:
True if the Previous button must be enabled, false otherwise.
 o pageHidden
public abstract void pageHidden(Component comp)
Called before the page is hidden. Default behavior: none.

Parameters:
comp - The page that has been shown.
 o pageShown
public abstract void pageShown(Component comp)
Called after a page is shown. Default behavior: none.

Parameters:
comp - The page that has been shown.
 o preparePage
public abstract void preparePage(Component comp,
                                 int action)
Called before a page is shown. Default behavior: add the page to the history stack if the action is NEXT, remove the last page from the history stack if the action is PREVIOUS.

Parameters:
comp - The page that will be shown.
action - The action that has led to this page, either PREVIOUS or NEXT. If it is the first page of the wizard, the action is NEXT.
See Also:
getPreviousPage
 o resetChainInfo
public abstract void resetChainInfo()
Reset the chain information set by setPreviousPageIndex, setNextPageIndex, setPreviousPage and setNextPage.

See Also:
setPreviousPageIndex, setNextPageIndex, setPreviousPage, setNextPage
 o setCancelEnabled
public abstract void setCancelEnabled(boolean status)
Enables or disables the Cancel button.

Parameters:
status - true to enable the button
See Also:
setPreviousEnabled, setNextEnabled, setFinishEnabled, setHelpEnabled
 o setFinishEnabled
public abstract void setFinishEnabled(boolean status)
Enables or disables the Finish button.

Parameters:
status - true to enable the button
See Also:
setPreviousEnabled, setNextEnabled, setCancelEnabled, setHelpEnabled
 o setHelpEnabled
public abstract void setHelpEnabled(boolean status)
Enables or disables the Help button.

Parameters:
status - true to enable the button
See Also:
setPreviousEnabled, setNextEnabled, setFinishEnabled, setCancelEnabled
 o setNextEnabled
public abstract void setNextEnabled(boolean status)
Enables or disables the Next button.

Parameters:
status - true to enable the button
See Also:
setPreviousEnabled, setFinishEnabled, setCancelEnabled, setHelpEnabled
 o setNextPage
public abstract void setNextPage(Component comp)
Set a next page. This page is used by the default implementation of getNextPage. It is reset after a page has been shown.

See Also:
getNextPage, resetChainInfo
 o setNextPageIndex
public abstract void setNextPageIndex(int index)
Set an index for the next page. This index is used by the default implementation of getNextPage. It is reset after a page has been shown.

See Also:
getNextPage, resetChainInfo
 o setPreviousEnabled
public abstract void setPreviousEnabled(boolean status)
Enables or disables the Previous button.

Parameters:
status - true to enable the button
See Also:
setNextEnabled, setFinishEnabled, setCancelEnabled, setHelpEnabled
 o setPreviousPage
public abstract void setPreviousPage(Component comp)
Set a previous page. This page is used by the default implementation of getPreviousPage. It is reset after a page has been shown.

See Also:
getPreviousPage, resetChainInfo
 o setPreviousPageIndex
public abstract void setPreviousPageIndex(int index)
Set an index for the previous page. This index is used by the default implementation of getPreviousPage. It is reset after a page has been shown.

See Also:
getPreviousPage, resetChainInfo
 o validatePage
public abstract boolean validatePage(Component comp,
                                     Component target,
                                     int action)
Try to validate a page. Default behavior: return the state of the button associated with the action, using the isXxxEnabled methods. For example, if the controller has the Previous button enabled, this method will return true, meaning that it is valid to go back. If the result is true, then the Wizard will proceed with the action, else the state will not change.

Parameters:
comp - The page that must be validated.
target - The page that will be shown if the action is PREVIOUS or NEXT, null otherwise.
action - The action that must be validated, PREVIOUS, NEXT, FINISH, CANCEL or HELP.
Returns:
True if the action is validated, false otherwise.

All Packages  Class Hierarchy  This Package  Previous  Next  Index